﻿using System;
using System.Net;
using System.Net.Sockets;

namespace HslCommunication.Enthernet
{
	/// <summary>
	/// 通用设备的基础状态
	/// </summary>
	// Token: 0x020000F3 RID: 243
	public class DeviceState
	{
		/// <summary>
		/// 设备的连接地址
		/// </summary>
		// Token: 0x170004EA RID: 1258
		// (get) Token: 0x06001498 RID: 5272 RVA: 0x0006AC20 File Offset: 0x00068E20
		// (set) Token: 0x06001499 RID: 5273 RVA: 0x0006AC28 File Offset: 0x00068E28
		public IPEndPoint DeviceEndPoint { get; set; }

		/// <summary>
		/// 设备的连接时间
		/// </summary>
		// Token: 0x170004EB RID: 1259
		// (get) Token: 0x0600149A RID: 5274 RVA: 0x0006AC31 File Offset: 0x00068E31
		// (set) Token: 0x0600149B RID: 5275 RVA: 0x0006AC39 File Offset: 0x00068E39
		public DateTime ConnectTime { get; set; }

		/// <summary>
		/// 网络套接字
		/// </summary>
		// Token: 0x170004EC RID: 1260
		// (get) Token: 0x0600149C RID: 5276 RVA: 0x0006AC42 File Offset: 0x00068E42
		// (set) Token: 0x0600149D RID: 5277 RVA: 0x0006AC4A File Offset: 0x00068E4A
		internal Socket WorkSocket { get; set; }

		/// <summary>
		/// 上次接收到信息的时间
		/// </summary>
		// Token: 0x170004ED RID: 1261
		// (get) Token: 0x0600149E RID: 5278 RVA: 0x0006AC53 File Offset: 0x00068E53
		// (set) Token: 0x0600149F RID: 5279 RVA: 0x0006AC5B File Offset: 0x00068E5B
		public DateTime ReceiveTime { get; set; }

		/// <summary>
		/// 设备的ip地址
		/// </summary>
		// Token: 0x170004EE RID: 1262
		// (get) Token: 0x060014A0 RID: 5280 RVA: 0x0006AC64 File Offset: 0x00068E64
		// (set) Token: 0x060014A1 RID: 5281 RVA: 0x0006AC6C File Offset: 0x00068E6C
		public string IpAddress { get; set; }

		/// <summary>
		/// 缓冲内存块
		/// </summary>
		// Token: 0x040004EE RID: 1262
		internal byte[] Buffer = new byte[1];
	}
}
